


function login_init()
    JINGS.InsertLuaTimer(0, 500, "login")
end

function login(msgid)
    local portfd = Port.GetByName("players");
    local linefd = Port.Connect(portfd, "127.0.0.1", 8080);
    print("connect success, begin login linefd is "..linefd); 
    local username = "lujingwei002";
    local password = "827f84426";
    Port.Send(linefd, 100, username, password);
    return 0;
end

 
